/**
Date: 2025-08-13
Copyright (c) 2025 CAX Conversion Project
*/
import request from '@/utils/request';
import request2 from '@/utils/request2';
// 分页查询强度数模清单Vs标准装机清单变更明细
export const getStrengthStandardDetailList = (query) => {
  return request({
    url: `/biz/bom/bom-detail/strength-standard-change/${query.aircraftModel}`,
    method: 'get',
    params: query
  });
};
// 分页查询标准装机清单文件列表
export const getStrengthList = (query) => {
  return request({
    url: `/biz/bom/list-bom/${query.aircraftModel}`,
    method: 'get',
    params: query
  });
};
// 生成清单
export const generateList = (data) => {
  return request({
    url: `/biz/bom/bom-generate/${data.aircraftModel}`,
    method: 'post',
    data: data
  });
};
// 导出
export const downloadData = (data) => {
  const obj = { ...data };
  delete obj.aircraftModel;
  return request2({
    url: `/biz/bom/bom-export/QBOM_SBOM_CHANGE/${data.aircraftModel}`,
    method: 'post',
    params: obj,
    responseType: 'blob'
  });
};